package com.exception;

/***
 * @ClassName: MyException
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 15:24 2022/1/27
 * @version : V1.0
 */
public class MyException extends Exception{
    private int age;

    public MyException(int age) {
        this.age = age;
    }


    @Override
    public String toString() {
        return "MyException{年龄错误" +
                "age=" + age +
                '}';
    }
}
